@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ecgAnimation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.splash-container {
  width: 100%;
  height: 100vh;
  background-color: #0080ff;
  color: #fff;
  overflow: hidden;
  position: relative;
  
  &.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
  }
  
  .splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .logo-container {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out forwards;
    
    .heart-rate-icon {
      width: 80px;
      height: 80px;
      position: relative;
      
      .heart {
        width: 60px;
        height: 60px;
        background-color: white;
        position: relative;
        transform: rotate(45deg);
        margin: 10px auto 0;
        
        &::before, &::after {
          content: "";
          width: 60px;
          height: 60px;
          background-color: white;
          border-radius: 50%;
          position: absolute;
        }
        
        &::before {
          top: -30px;
          left: 0;
        }
        
        &::after {
          top: 0;
          left: -30px;
        }
      }
      
      .ecg-line {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 20px;
        background: linear-gradient(90deg, 
          transparent 0%, 
          transparent 40%, 
          white 40%, 
          white 43%, 
          transparent 43%, 
          transparent 47%,
          white 47%, 
          white 53%, 
          transparent 53%, 
          transparent 57%, 
          white 57%, 
          white 60%, 
          transparent 60%, 
          transparent 100%
        );
        background-size: 100% 100%;
        background-repeat: no-repeat;
      }
    }
  }
  
  .app-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
  }
  
  .app-slogan {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
    margin-bottom: 100px;
    
    p {
      margin: 0;
    }
  }
  
  .experience-btn {
    padding: 10px 30px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
    position: absolute;
    bottom: 50px;
    
    &:active {
      background-color: rgba(255, 255, 255, 0.1);
    }
  }
}

/* 调整移动设备上的垂直居中 */
@media screen and (max-height: 600px) {
  .splash-container {
    .app-slogan {
      margin-bottom: 60px;
    }
    
    .experience-btn {
      bottom: 30px;
    }
  }
} 